// banner  导出单独函数功能
import { ref } from 'vue'
import { getBanner } from '@/api/home'
function useBanner () {
  const bannerList = ref([])
  async function loadBanner () {
    const res = await getBanner()
    console.log(res)
    bannerList.value = res.data.result
  }
  loadBanner()
  return {
    bannerList
  }
}

export default useBanner
